<?php
namespace Api\Model;
use Think\Model;
class CategoryLabelModel extends Model {

    /**
     * @name 根据分类id获取
     * @param int $categoryId
     */
    public function getListByCategoryId($categoryId=0)
    {
        return $this->where("`category_id`={$categoryId}")->field("id,name")->order("`display` DESC")->select();
    }
}